package com.walkline.travelassistant.dao;

import org.json.me.JSONObject;

import com.walkline.travelassistant.TravelAssistantException;
import com.walkline.travelassistant.TravelAssistantSDK;
import com.walkline.travelassistant.inf.SuggestionItem;

public class TravelAssistantSuggestionItem extends TravelAssistantObject implements SuggestionItem
{
	private String _name = "";
	private String _city = "";
	private String _district = "";
	private String _business = "";
	private String _city_id = "";

	public TravelAssistantSuggestionItem(TravelAssistantSDK travelAssistant, JSONObject jsonObject) throws TravelAssistantException
	{
		super(travelAssistant, jsonObject);

		JSONObject suggestionItemObject = jsonObject;
		if (suggestionItemObject != null)
		{
			_name = suggestionItemObject.optString("name");
			_city = suggestionItemObject.optString("city");
			_district = suggestionItemObject.optString("district");
			_business = suggestionItemObject.optString("business");
			_city_id = suggestionItemObject.optString("cityid");
		}
	}

	public String getName() {return _name;}

	public String getCity() {return _city;}

	public String getDistrict() {return _district;}

	public String getBusiness() {return _business;}

	public String getCityId() {return _city_id;}
}